<?php defined('InTuntronKJ') or exit('Access Invalid!');?>

<!--betting_block start-->
<div class="betting_block">
    <!--betting_list start-->
    <div class="betting_list">
        <div class="list_table lottery">
            <table class="order_table">
                <thead>
                    <tr>
                        <th><span>期号</span></th>
                        <th style="width: 100px;"><span>开奖号码</span></th>
                        <th style="width: 26px;"><span>大小</span></th>
                        <th style="width: 26px;"><span>单双</span></th>
                    </tr>
                </thead>
                <tbody id="top5Container">
                        <?php if(!empty($output['kaijiang_list']) && is_array($output['kaijiang_list'])){?>
						<?php foreach($output['kaijiang_list'] as $key=>$val){?>
                        <tr>
                            <td class="center"><span class="base_strong base_orgen 5_issueNumber"><?php echo $val['qihao'] ?></span></td>
                            <td class="center">
                                <div class="win_numbs">
                                    <ul class="5_num">
                                    		<?php foreach($val['hao'] as $item) {?>
                                            <li><span><?php echo $item ?></span></li>
                                            <?php } ?>
                                    </ul>
                                    <div class="clear"></div>
                                </div>
                            </td>
                            <td class="center"><span class="base_blue 5_bigStatus"><?php echo $val['dx'] ?></span></td>
                            <td class="center"><span class="base_green 5_singleStatus"><?php echo $val['ds'] ?></span></td>
                        </tr>
                        <?php } ?>
						<?php } ?>
                </tbody>
            </table>
        </div>


        <div class="list_table topic_rank">
            <h4 title="Top20">Top20</h4>
             <!--trend_handle satrt-->
                <div id="trend_handle"> <a href="javascript:void(0);" onclick="showTrend()">走势图<i>&nbsp;</i></a> </div>
                <!--trend_handle end--> 
            <div class="tpwb_marquee" id="tpwb_marquee">
                <div class="tpwb_marquee_list">
                    <table class="order_table">
                        <tbody class="top10Container">
                        </tbody>
                    </table>
                </div>
                <div class="tpwb_marquee_shadow" id="tpwb_marquee_shadow_top"></div>
                <div class="tpwb_marquee_shadow" id="tpwb_marquee_shadow_bottom"></div>
            </div>
        </div>
    </div>
    <!--betting_list end-->

    <!--betting_controll start-->
    <div class="betting_controll">

        <!--betting_info start-->
        <div class="betting_info">
            <div class="bt_cutdown">
                <div class="bt_item_name">第<span></span>期 </div>
                <div id="bt_item_cutdown">
                    <div class="bt_item_cutdown_title">剩余投注时间</div>
                    <div class="bt_item_cutdown_timer"><span>00</span> <span>:</span> <span>00</span> </div>
                    <div class="bt_item_cutdown_locker" title="状态锁定" style="display: none;"><em>状态锁定</em></div>
                </div>
                <div class="bt_item_sound" id="sound_lock"><span title="点击关闭后台声音!">声音提示</span></div>
            </div>
            <div class="bt_last_info">
                <div class="bt_item_last_info">
                    <div class="bt_item_last_title"><span class="award_name">重庆彩</span>第<span id="pre_award_period" class="award_period"></span>期 </div>
                    <div class="bt_item_last_winnumber" id="bt_item_last_winnumber">
                        <div class="bt_item_win_numbers">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                                <li><span>0</span></li>
                            </ol>
                        </div>
                        <div class="bt_item_win_numbers">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                                <li><span>0</span></li>
                            </ol>
                        </div>
                        <div class="bt_item_win_numbers">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                                <li><span>0</span></li>
                            </ol>
                        </div>
                        <div class="bt_item_win_numbers">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                                <li><span>0</span></li>
                            </ol>
                        </div>
                        <div class="bt_item_win_numbers">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                                <li><span>0</span></li>
                            </ol>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="bt_item_timer_tips">
                    <div class="timer_tips">距第<span id="cur_award_period" class="award_period">20130617-034</span>期开奖还有<span class="award_timer">01:00</span></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <!--betting_info end-->

        <!--betting_controll_panle start-->
        <div class="betting_controll_panle" id="betting_controll_panle" style="position: relative;">

            <!--betting_type start-->
            <div class="betting_type" id="betting_type">
                <ul>
                	<?php foreach($output['played_group'] as $key=>$val){ ?>
                    <li data-model="<?php echo $val['ids']?>" data-id="<?php echo $val['id']?>" data-url="#Betting/1?betType=<?php echo $val['id']?>">
                    	<span><?php echo $val['groupName']?></span>
                    </li>
					<?php }?>
                </ul>
                <div class="clear"></div>
                <div id="bt_tips"><a href="javascript:void(0);" title="鼠标按住玩法，可以拖动到侧边玩法收藏中。">?</a></div>
            </div>
            <!--betting_type end-->

            <!--betting_controll_sub start-->
            <div class="betting_controll_sub">
                <div class="bc_sub_header">
                    <h4><span>号码选择</span></h4>
                     
               
                
                </div>
                <div id="inputWeiContain" class="bc_sub_body nubmb_check" style="display: none">
					<div id="wei-shu" style="text-align: center;">
						<label><input type="checkbox" value="16">万位</label>
						<label><input type="checkbox" value="8">千位</label>
						<label><input type="checkbox" value="4">百位</label>
						<label><input type="checkbox" value="2">十位</label>
						<label><input type="checkbox" value="1">个位</label>
					</div>
                </div>
                <div id="inputContain" class="bc_sub_body nubmb_check" style="display: none">
                    <textarea id="singleNumberInput" style="height: 99px" />
                </div>
                <div id="selectContain" class="bc_sub_body nubmb_check">
					<!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>万位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li> 
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>千位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>百位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>十位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>个位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>组选：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->

                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>不定位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>0</span></li>
                                <li><span>1</span></li>
                                <li><span>2</span></li>
                                <li><span>3</span></li>
                                <li><span>4</span></li>
                                <li><span>5</span></li>
                                <li><span>6</span></li>
                                <li><span>7</span></li>
                                <li><span>8</span></li>
                                <li><span>9</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="nci_sort">
                            <ul>
                                <li data-option="all"><span>全</span></li>
                                <li data-option="big"><span>大</span></li>
                                <li data-option="small"><span>小</span></li>
                                <li data-option="odd"><span>单</span></li>
                                <li data-option="even"><span>双</span></li>
                                <li data-option="clear"><span>清</span></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                    
                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>万位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>大</span></li>
                                <li><span>小</span></li>
                                <li><span>单</span></li>
                                <li><span>双</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                    
                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>千位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>大</span></li>
                                <li><span>小</span></li>
                                <li><span>单</span></li>
                                <li><span>双</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                    
                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>百位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>大</span></li>
                                <li><span>小</span></li>
                                <li><span>单</span></li>
                                <li><span>双</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                    
                                        <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>十位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>大</span></li>
                                <li><span>小</span></li>
                                <li><span>单</span></li>
                                <li><span>双</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                    
                    <!--numb_check_item start-->
                    <div class="numb_check_item">
                        <div class="nci_title"><span>个位：</span></div>
                        <div class="nci_numbs">
                            <ol>
                                <li><span>大</span></li>
                                <li><span>小</span></li>
                                <li><span>单</span></li>
                                <li><span>双</span></li>
                            </ol>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--numb_check_item end-->
                   

                </div>
            </div>
            <!--betting_controll_sub end-->

            <!--betting_model start-->
            <div class="betting_model">
                <div class="bm_title"><span>投注类型</span></div>
                <div class="bm_model">
                    <ul>
                            <?php foreach($output['played_all_list'] as $key=>$val){?>
                    	    <li rule_id="<?php echo $val['id']?>"  isPre="0" MatchType="" SelectedRegex="" Num="" 
                    	    unit-value="<?php echo ncPriceFormat($val['bonusProp'])?>|0|0.00|<?php $len = strlen($val['bonusProp']-$val['bonusPropBase']); echo $len>=5?100:($len<=3?1:10) ?>|<?php echo ncPriceFormat($val['bonusPropBase'])?>|<?php $num = $val['bonusProp']-$val['bonusPropBase']; echo $num>0?0:1 ?>">
                                <input type="radio" name="bt_radio" />
                                <label><?php echo $val['name']?></label>
                            </li>
                            <?php }?>
                    </ul>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
            <!--betting_model end-->

            <!--play_intro start-->
            <div id="play_intro">
                <!--play_intro_item start-->
                <div class="play_intro_item">
                    <p></p>
                </div>
            </div>
            <!--play_intro end-->

            <!--betting_controll_sub start-->
            <div class="betting_controll_sub">
                <div class="bc_sub_header">
                    <h4><span>已选号码</span></h4>
                    <div class="numb_check_button">
                        <div class="nc_btn" id="add_betting_number"><span>添加</span></div>
                        <div class="nc_btn" id="clear_betting_number"><span>清空</span></div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="bc_sub_body">
                    <div class="numb_checked" title="可双击删除已选号码">
                    </div>
                </div>
            </div>
            <!--betting_controll_sub end-->

            <!--bc_form_action start-->
            <div class="bc_form_action">
                <!--betting_statc start-->
                <div class="betting_statc">
                    <div class="bs_str">当前共投注<span id="singleBettingTotal">0</span>注，单个号码下单倍数</div>
                    <div class="base_text bs_str" id="record_sum_input" style="width: 40px;">
                        <input type="text" value="1" />
                    </div>
                    <div class="bs_str">倍</div> 
                    <div class="bs_str">，金额：<span id="singleTotalMoney">0</span>元</div>
                    <div class="clear"></div>
                </div>
                <!--betting_statc end-->

                <!--betting_button start-->
                <div class="betting_button">
                    <div class="bb_btn" id="slide_check">
                        <div class="sc_item" id="rebate_option" title="修改奖金">
                        	<span id="pay_edit"><em class="sci_a" id="double_pay">0</em>/<em class="sci_b" id="single_pay">925</em></span>
                        	<span id="pay" style="display: none"><em class="sci_a" id="double_pay">0</em></span>
                        </div>
                    </div>
                    <div class="bb_btn" id="betting_btn"><span>确认投注</span></div>
                    <!--<div class="bb_btn" id="betting_btn"><span class="locked">请稍候</span></div>-->
                    <div class="clear"></div>
                </div>
                <!--betting_button end-->
            </div>
            <!--bc_form_action end-->

        </div>
        <!--betting_controll_panle end-->

        <!--betting_form start-->
        <div style="display: none;">
            <!--彩种名称-->
            <input type="text" id="award_name" value="重庆彩" />

            <!--彩种数据索引-->
            <input type="text" id="award_id" value="award_cqc_2013" />

            <!--玩法-->
            <input type="text" id="play_model" value="" />

            <!--投注类型-->
            <input type="text" id="betting_type" value="" />

            <!--注数-->
            <input type="text" id="record_number" value="" />

            <!--单注金额-->
            <input type="text" id="record_sum" value="" />

            <!--每注信息-->
            <input type="text" id="record_list" value="" />
        </div>
        <!--betting_form end-->

    </div>
    <!--betting_controll end-->

    <div class="clear"></div>
</div>
<!--betting_block end-->


<!--betting_logs start-->
<div class="base_cont betting_logs">
    <div class="cont_header">
        <h4><span>最近投注记录</span></h4>
        <div class="clear"></div>
    </div>
    <div class="cont_body" style="padding: 8px;">
        <div class="list_table">
            <table class="order_table">
                <thead>
                    <tr>
                        <th style="width: 120px;"><span>订单号</span></th>
                        <th><span>下单时间</span></th>
                        <th style="width: 80px;"><span>玩法种类</span></th>
                        <th style="width: 80px;"><span>玩法名称</span></th>
                        <th style="width: 150px;"><span>期号</span></th>
                        <th><span>投注内容</span></th>
                        <th style="width: 80px;"><span>单注金额</span></th>
                        <th style="width: 80px;"><span>投注总额</span></th>
                    </tr>
                </thead>
                <tbody id="recentContainer">
                    
                </tbody>
            </table>
        </div>
        <!--page_nav start-->
        <div class="page_nav">
            <ul>
                <li><a id="firstPage" href="javascript:;">首页</a></li>
                <li><a id="prePage" href="javascript:;">上一页</a></li>
                <li><a id="afterPage" href="javascript:;">下一页</a></li>
                <li><a id="lastPage" href="javascript:;">最后页</a></li>
                <li><span id="totalPages"></span></li>
                <li><span id="totalRecords">共条记录</span></li>
            </ul>
            <div class="clear"></div>
        </div>
        <!--page_nav end-->
    </div>
</div>
<!--betting_logs end-->


<script type="text/javascript">
    var _curBetType = "<?php echo $output['param']['curBetType']?>";
    var _curBetTypeName = "<?php echo $output['param']['curBetTypeName']?>";
    var _lotteryId = "<?php echo $output['param']['lotteryId']?>";
    var _curLotteryName = "重庆彩";
    init_betting();
    //显示走势图
    function showTrend() {
        var url;
        switch (_lotteryId) {
            case "1"://重庆彩
                url = "http://data.shishicai.cn/cqssc/zoushi/3/";
                break;
            case "2"://黑龙江
                url = "http://trend.zgzcw.com/hljssc/analyse!generalAward1.action";
                break;
            case "4"://排列3
                url = "http://zx.caipiao.163.com/trend/pl3_basic.html";
                break;
            case "5"://福彩3D
                url = "http://zx.caipiao.163.com/trend/x3d_basic.html?from=alading";
                break;
            default:
                url = "http://data.shishicai.cn/cqssc/zoushi/3/";
                break;
        }
        ShowDialog(url, false, 1024, 768);
    }
</script>
